package com.baixun.gasentity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * @program: 上海燃气驾驶舱
 * @description: 用户表，用于后台管理系统定义用户
 * @author: yesong
 **/

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "系统部门用户实体类")
@TableName("sys_department_user")
public class SysDepartmentUser implements Serializable {

    @ApiModelProperty(value = "唯一标识ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户ID", example = "123456")
    private Long userId;

    @ApiModelProperty(value = "用户名", example = "张三")
    private String userName;

    @ApiModelProperty(value = "部门ID", example = "1001")
    private Long departmentId;

    @ApiModelProperty(value = "创建时间", example = "2023-10-01T12:00:00Z")
    private Timestamp createTime;

    @ApiModelProperty(value = "是否已删除", example = "false")
    private Boolean deleted;

    @TableField(exist = false)
    private List<SysDepartmentRoles> roles;
}

